﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Globalization;
using System.Web.Mvc;
using System.Web.Security;

namespace ExtremeEvents.Models
{
    public class MudarPasswordModel
    {
        [Required]
        [DataType(DataType.Password)]
        [Display(Name = "Password atual")]
        public string Password_Antiga { get; set; }

        [Required]
        [StringLength(100, ErrorMessage = "A {0} tem de ter {2} caracteres.", MinimumLength = 6)]
        [DataType(DataType.Password)]
        [Display(Name = "Nova Password")]
        public string Password_Nova { get; set; }

        [DataType(DataType.Password)]
        [Display(Name = "Confirma a nova password")]
        [Compare("Password_Nova", ErrorMessage = "As passwords não coincidem.")]
        public string Password_Confirmacao { get; set; }
    }

    public class LoginModel
    {
        [Required]
        [Display(Name = "Login")]
        public string Login { get; set; }

        [Required]
        [DataType(DataType.Password)]
        [Display(Name = "Password")]
        public string Password { get; set; }

        [Display(Name = "Relembrar-me?")]
        public bool Relembrar_Me { get; set; }
    }

    //public class RegistarModel
    //{
    //    [Required]
    //    [Display(Name = "Login")]
    //    public string Login { get; set; }

    //    [Required]
    //    [DataType(DataType.EmailAddress)]
    //    [Display(Name = "Email")]
    //    public string Email { get; set; }

    //    [Required]
    //    [StringLength(100, ErrorMessage = " A {0} tem de ter {2} caracteres.", MinimumLength = 6)]
    //    [DataType(DataType.Password)]
    //    [Display(Name = "Password")]
    //    public string Password { get; set; }

    //    [DataType(DataType.Password)]
    //    [Display(Name = "Confirmação password")]
    //    [Compare("Password", ErrorMessage = "A password e a confirmação não coincidem.")]
    //    public string Confirmacao_Password { get; set; }
    //}
}